--LoadAddOn("Scorpio.Widget")
--
--Scorpio "Test" ""
--
--Continue(function()
--    Alert("Wait the click")
--    print("The alert is closed")
--end)


--local myClass = select(2, UnitClass("player"))
--local color = (CUSTOM_CLASS_COLORS or RAID_CLASS_COLORS)[myClass]

-- 创建一个框架元素
-- frame = CreateFrame("frameType" [, "name" [, parent [, "template"]]])
-- frameType:框架类型;Frame/Button;详见 https://wow.gamepedia.com/API_CreateFrame
--local frame = CreateFrame("Frame", nil, UIParent)
--frame:SetPoint("CENTER")
--frame:SetSize(64, 64)

--local tex = f:CreateTexture()
--tex:SetAllPoints(f)
--tex:SetTexture("Interface/AddOns/FreeMountCd/Hexagon")
--
--local btn = CreateFrame("Button", nil, UIParent, "UIPanelButtonTemplate")
--btn:SetPoint("CENTER")
--btn:SetSize(100, 40)
--btn:SetText("Click me")
--btn:HookScript("OnMouseDown", function(self, button)
--    print("You clicked me with " .. button)
--end)
--
--local pm = CreateFrame("PlayerModel")
--pm:SetPoint("CENTER")
--pm:SetSize(200, 200)
--pm:SetDisplayInfo(21723) -- Murloc Costume

--local gameTooltip = CreateFrame("PlayerModel", nil, UIParent, "GameTooltipTemplate")
--gameTooltip:SetOwner(UIParent, "ANCHOR_NONE")

--local MySimpleHTMLObject = CreateFrame('SimpleHTML');
--MySimpleHTMLObject:SetFont('Fonts\\FRIZQT__.TTF', 11);
--MySimpleHTMLObject:SetText('<html><body><h1>Heading1</h1><p>A paragraph</p></body></html>');

--local checkButton = CreateFrame("CheckButton", nil, UIParent, "ChatConfigCheckButtonTemplate")
--checkButton:SetBackdrop({ bgFile = "Interface\\AddOns\\abcInterface\\xx" })
--checkButton:SetBackdropColor(color.r, color.g, color.b)
--checkButton:SetPoint("TOPLEFT", 200, -200);
--checkButton:SetText("哈哈");
--checkButton.tooltip = "tooltip";
--checkButton:HookScript("OnClick", function()
--    print("OnClick")
--end);